package com.hyou.springboot2.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.hyou.springboot2.service.base.impl.SysAccountServiceImpl;
import com.hyou.springboot2.service.base.impl.SysDeptServiceImpl;
import com.hyou.springboot2.service.base.impl.SysMenuServiceImpl;
import com.hyou.springboot2.service.base.impl.SysRoleServiceImpl;
import com.hyou.springboot2.service.base.itfc.SysAccountService;
import com.hyou.springboot2.service.base.itfc.SysDeptService;
import com.hyou.springboot2.service.base.itfc.SysMenuService;
import com.hyou.springboot2.service.base.itfc.SysRoleService;

@Configuration
public class ApplicationServiceConfig {
    
    @Bean
    public SysAccountService sysAccountService() {
        return new SysAccountServiceImpl();
    }
    
    @Bean
    public SysDeptService sysDeptService() {
        return new SysDeptServiceImpl();
    }
    
    @Bean
    public SysMenuService sysMenuService() {
        return new SysMenuServiceImpl();
    }
    
    @Bean
    public SysRoleService sysRoleService() {
        return new SysRoleServiceImpl();
    }
    
}
